import type { RouteRecordRaw } from 'vue-router';
import Layout from '@/layout/index.vue';
const defaultRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/login',
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录',
      icon: 'Login',
      show: false,
    },
  },
  {
    path: '/home',
    name: 'Home',
    component: Layout,
    meta: {
      title: '首页',
      icon: 'Home',
      show: true,
    },
    children: [
      {
        path: '/workbench',
        name: 'Workbench',
        component: () => import('@/views/workbench/index.vue'),
        meta: {
          title: '工作台',
          icon: 'Workbench',
        },
      },
    ],
  },
];
export default defaultRoutes;
